package com.message.api.base.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.message.api.base.entity.MsNotice;
import com.message.api.base.vo.MsNoticeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author mzl
 * @since 2020-08-10
 */
public interface MsNoticeMapper extends BaseMapper<MsNotice> {

    /**
     * 条件查询
     *
     * @param queryWrapper
     * @return
     */
    List<MsNoticeVo> findByExample(@Param(Constants.WRAPPER) QueryWrapper<MsNoticeVo> queryWrapper);

    /**
     * 条件查询
     *
     * @param page
     * @param queryWrapper
     * @return
     */
    List<MsNoticeVo> findByExample(@Param(Constants.WRAPPER) QueryWrapper<MsNoticeVo> queryWrapper, Page page);

}
